module.exports = {
  baseUrl: process.env.NODE_ENV === "production" ? "./" : "/",
  outputDir: process.env.outputDir,
  configureWebpack: {
    devtool: 'source-map',
    externals: {
      vue: "Vue",
      vuex: "Vuex",
      "vue-router": "VueRouter",
      "element-ui": "ELEMENT",
      "axios": "axios"
    }
  },
  devServer: {
    proxy: {
      '/api': {
        // target: 'https://study2.lijian.ink/',
        target: 'http://localhost:3003/',
        ws: true,
        changeOrigin: true
      }
    }
  }
}